package com.kedacom.demo.modularity.message;

public class ClientTestRunnable implements Runnable {

	private XMPPMessageGateway xmppMessageGateway;

	public ClientTestRunnable(XMPPMessageGateway xmppMessageGateway) {
		super();
		this.xmppMessageGateway = xmppMessageGateway;
	}

	@Override
	public void run() {
		xmppMessageGateway.send(
				new InstantMessage("1", "newFan", "{'type':'newFan',count:1}", "admin@test.com", "guojing@test.com"));
	}

}
